package com.antdesignbackend.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("T_Middlecommand")
public class Middlecommand {

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;
    /**
     创建时间
     */
    @TableField("CreateTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("uid")
    private String uid;

    /**
     设备名称
     */
    @TableField("meterName")
    private String meterName;
    /**
     订阅号
     */
    @TableField("topic")
    private String topic;

    /**
     命令
     */
    @TableField("sendCommand")
    private String sendCommand;

    /**
     执行时间
     */
    @TableField("actionTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date actionTime;

    /**
     状态，0未执行，1成功，-1失败
     */
    @TableField("status")
    private Integer status;
    /**
     备注
     */
    @TableField("description")
    private String description;
    /**
     应答值
     */
    @TableField("answerValue")
    private String answerValue;
    /**
     房间ID
     */
    @TableField("roomId")
    private Integer roomId;
    /**
     设备ID
     */
    @TableField("meterId")
    private Integer meterId;
    /**
     预约ID
     */
    @TableField("appointId")
    private Integer appointId;
    /**
     命令号
     */
    @TableField("commandNo")
    private Integer commandNo;
    /**
     门店ID
     */
    @TableField("shopId")
    private Integer shopId;
}
